﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
    CodeFile="JointingFailure_ManagePack.aspx.cs" Inherits="ProductManage_RFProductManage_Manage_JointingFailureManage_JointingFailure_ManagePack"
    Title="无标题页" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <div>
                <div>
                    <br />
                    产品包装前QC外观检验不良项列表：
                </div>
                <div style="text-align: center;">
                    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CellPadding="3"
                        GridLines="None" DataKeyNames="FailureID,FailureName" BackColor="White" BorderColor="White"
                        BorderStyle="Ridge" BorderWidth="2px" CellSpacing="1" Width="100%" OnRowDataBound="GridView1_RowDataBound"
                        OnRowDeleting="GridView1_RowDeleting" OnRowCommand="GridView1_RowCommand" 
                        Onrowcancelingedit="GridView1_RowCancelingEdit" 
                        OnRowEditing="GridView1_RowEditing" Onrowupdating="GridView1_RowUpdating">
                        <FooterStyle BackColor="#C6C3C6" ForeColor="Black" />
                        <Columns>
                            <asp:TemplateField HeaderText="外观检验不良名称">
                                <EditItemTemplate>
                                    <asp:Label ID="Label2" runat="server" Text='<%# Bind("FailureName") %>'></asp:Label>
                                </EditItemTemplate>
                                <ItemTemplate>
                                    <asp:Label ID="Label2" runat="server" Text='<%# Bind("FailureName") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="对应返修路径">
                                <EditItemTemplate>
                                    <asp:HiddenField ID="HDFRepairPath" runat="server" Value='<%# Eval("RepairPath") %>' />
                                    <asp:DropDownList ID="DDLRepairPath" runat="server">
                                    </asp:DropDownList>
                                </EditItemTemplate>
                                <ItemTemplate>
                                    <asp:Label ID="Label1" runat="server" Text='<%# Bind("RepairPath") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:CommandField HeaderText="更改" ShowEditButton="True" />
                            <asp:CommandField HeaderText="删除" ShowDeleteButton="True" />
                            <asp:ButtonField CommandName="Insert" HeaderText="新增" Text="新增" />
                        </Columns>
                        <RowStyle BackColor="#DEDFDE" ForeColor="Black" />
                        <EmptyDataTemplate>
                            <asp:DetailsView ID="DetailsView1" runat="server" AutoGenerateInsertButton="True"
                                AutoGenerateRows="False" BackColor="White" BorderColor="White" BorderStyle="Ridge"
                                BorderWidth="2px" CellPadding="3" CellSpacing="1" DefaultMode="Insert" GridLines="None"
                                Height="50px" OnItemInserting="DetailsView1_ItemInserting" OnModeChanging="DetailsView1_ModeChanging">
                                <FooterStyle BackColor="#C6C3C6" ForeColor="Black" />
                                <RowStyle BackColor="#DEDFDE" ForeColor="Black" />
                                <PagerStyle BackColor="#C6C3C6" ForeColor="Black" HorizontalAlign="Right" />
                                <Fields>
                                    <asp:BoundField DataField="FailureName" HeaderText="外观检验不良名称" />
                                    <asp:TemplateField HeaderText="对应返修路径">
                                        <EditItemTemplate>
                                            <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("RepairPath") %>'></asp:TextBox>
                                        </EditItemTemplate>
                                        <InsertItemTemplate>
                                            <asp:DropDownList ID="DDLRepairPath" runat="server" Width="100%"></asp:DropDownList>
                                        </InsertItemTemplate>
                                        <ItemTemplate>
                                            <asp:Label ID="Label1" runat="server" Text='<%# Bind("RepairPath") %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                </Fields>
                                <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#E7E7FF" />
                                <EditRowStyle BackColor="#9471DE" Font-Bold="True" ForeColor="White" />
                            </asp:DetailsView>
                        </EmptyDataTemplate>
                        <SelectedRowStyle BackColor="#9471DE" Font-Bold="True" ForeColor="White" />
                        <PagerStyle BackColor="#C6C3C6" ForeColor="Black" HorizontalAlign="Right" />
                        <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#E7E7FF" />
                    </asp:GridView>
                    <br />
                </div>
                <br />
                <br />
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
